{% extends "base.html" %}

{% block title %}Scanning Strength{% endblock %}
{% block heading %}Scanning Strength{% endblock %}

{% block leftmenu %}
	<a href='/scanning'>Map</a><br/>
	<a href='/scanningcalc'>Calculator</a><br/>
{% endblock %}

{% block content %}

		<form action='/scanningcalc' method='post'>
		<table>
			<tr class="standard">
				<td>Character:</td>
				<td colspan="5">{{calcs.char_name}}</td>
			</tr>
			<tr class="standard">
				<td>Covops skill:</td>
				<td>
					<select name='covops_skill'>
						<option {% ifequal 0 calcs.covops_skill %}selected='selected' {% endifequal %} value="0">Not in CovOps</option>
						<option {% ifequal 1 calcs.covops_skill %}selected='selected' {% endifequal %} value="1">1</option>
						<option {% ifequal 2 calcs.covops_skill %}selected='selected' {% endifequal %} value="2">2</option>
						<option {% ifequal 3 calcs.covops_skill %}selected='selected' {% endifequal %} value="3">3</option>
						<option {% ifequal 4 calcs.covops_skill %}selected='selected' {% endifequal %} value="4">4</option>
						<option {% ifequal 5 calcs.covops_skill %}selected='selected' {% endifequal %} value="5">5</option>
					</select> 
				</td>
				<td><i>Covert Operations piloting skill level&nbsp;&nbsp;&nbsp;&nbsp;</i></td>
				<td>AR skill:</td>
				<td>
					<select name='ar_skill'>
						<option {% ifequal 0 calcs.ar_skill %}selected='selected' {% endifequal %} value="0">Not trained</option>
						<option {% ifequal 1 calcs.ar_skill %}selected='selected' {% endifequal %} value="1">1</option>
						<option {% ifequal 2 calcs.ar_skill %}selected='selected' {% endifequal %} value="2">2</option>
						<option {% ifequal 3 calcs.ar_skill %}selected='selected' {% endifequal %} value="3">3</option>
						<option {% ifequal 4 calcs.ar_skill %}selected='selected' {% endifequal %} value="4">4</option>
						<option {% ifequal 5 calcs.ar_skill %}selected='selected' {% endifequal %} value="5">5</option>
					</select> 
				</td>
				<td><i>Astrometric Rangefinding skill level</i></td>
			</tr>
			<tr class="standard">
				<td>Scanner type:</td>
				<td>
					<select name='scanner_bonus'>
						<option {% ifequal 0 calcs.scanner_bonus %}selected='selected' {% endifequal %} value="0">Standard</option>
						<option {% ifequal 5 calcs.scanner_bonus %}selected='selected' {% endifequal %} value="5">Sisters</option>
					</select> 
				</td>
				<td><i>Sisters probe launcher fitted?&nbsp;&nbsp;&nbsp;&nbsp;</i></td>
				<td>Probe type:</td>
				<td>
					<select name='probe_bonus'>
						<option {% ifequal 0 calcs.probe_bonus %}selected='selected' {% endifequal %} value="0">Standard</option>
						<option {% ifequal 10 calcs.probe_bonus %}selected='selected' {% endifequal %} value="10">Sisters</option>
					</select> 
				</td>
				<td><i>Using Sisters probes?</i></td>
			</tr>
			<tr class="standard">
				<td>Grav Rigs:</td>
				<td>
					<select name='grav_rigs'>
						<option {% ifequal 0 calcs.grav_rigs %}selected='selected' {% endifequal %} value="0">None</option>
						<option {% ifequal 1 calcs.grav_rigs %}selected='selected' {% endifequal %} value="1">1</option>
						<option {% ifequal 2 calcs.grav_rigs %}selected='selected' {% endifequal %} value="2">2</option>
						<option {% ifequal 3 calcs.grav_rigs %}selected='selected' {% endifequal %} value="3">3</option>
					</select> 
				</td>
				<td colspan="4">
					<i>Number of grav rigs fitted to ship</i>
				</td>
			</tr>
			<tr class="standard">
				<td>Implants:</td>
				<td>
					<input type="text" name="implant_bonus" value="{{calcs.implant_bonus}}" size="6" />%
				</td>
				<td colspan="4">
					<i>Total scan strength bonus from PPH & Virtue implants</i>
				</td>
			</tr>
			<tr class="standard">
				<td>Total bonus:</td>
				<td>
					<b>{{calcs.total_bonus}}</b>
				</td>
				<td colspan="4">&nbsp;</td>
			</tr>
			<tr class="standard">
				<td>Target Size:</td>
				<td>
					<select name='target_size'>
						<option {% ifequal 20 calcs.target_size %}selected='selected' {% endifequal %}>20</option>
						<option {% ifequal 10 calcs.target_size %}selected='selected' {% endifequal %}>10</option>
						<option {% ifequal 6.67 calcs.target_size %}selected='selected' {% endifequal %}>6.67</option>
						<option {% ifequal 5 calcs.target_size %}selected='selected' {% endifequal %}>5</option>
						<option {% ifequal 4 calcs.target_size %}selected='selected' {% endifequal %}>4</option>
						<option {% ifequal 2.5 calcs.target_size %}selected='selected' {% endifequal %}>2.5</option>
						<option {% ifequal 2.22 calcs.target_size %}selected='selected' {% endifequal %}>2.22</option>
						<option {% ifequal 1.25 calcs.target_size %}selected='selected' {% endifequal %}>1.25</option>
					</select> 
				</td>
				<td colspan="4">
					<i>(for example, a static C6 would be size 6.67)</i>
				</td>
			</tr>
			<tr class="standard">
				<td>Scan range:</td>
				<td>
					<select name='scan_range'>
						<option {% ifequal  256 calcs.scan_range %}selected='selected' {% endifequal %}>256</option>
						<option {% ifequal  128 calcs.scan_range %}selected='selected' {% endifequal %}>128</option>
						<option {% ifequal   64 calcs.scan_range %}selected='selected' {% endifequal %}>64</option>
						<option {% ifequal   32 calcs.scan_range %}selected='selected' {% endifequal %}>32</option>
						<option {% ifequal   16 calcs.scan_range %}selected='selected' {% endifequal %}>16</option>
						<option {% ifequal    8 calcs.scan_range %}selected='selected' {% endifequal %}>8</option>
						<option {% ifequal    4 calcs.scan_range %}selected='selected' {% endifequal %}>4</option>
						<option {% ifequal    2 calcs.scan_range %}selected='selected' {% endifequal %}>2</option>
						<option {% ifequal    1 calcs.scan_range %}selected='selected' {% endifequal %}>1</option>
						<option {% ifequal  0.5 calcs.scan_range %}selected='selected' {% endifequal %}>0.5</option>
						<option {% ifequal 0.25 calcs.scan_range %}selected='selected' {% endifequal %}>0.25</option>
					</select>
					AU
				</td>
				<td colspan="4">&nbsp;</td>
			</tr>
			<tr class="standard">
				<td>Max strength:</td>
				<td>
					<b>{{calcs.max_strength|floatformat:2}}%</b>
				</td>
				<td colspan="4">
					<i>(this is the strength at 0 range)</i>
				</td>
			</tr>	
			<tr class="standard">
				<td>Distance:</td>
				<td>
					<input type="text" name="distance" value="{{calcs.distance}}" size="6" />au
				</td>
				<td colspan="4">
					<i>Probe distance from signature</i>
				</td>
			</tr>	
			<tr class="standard">
				<td>Strength:</td>
				<td>
					<b>{{calcs.strength|floatformat:2}}%</b>
				</td>
				<td colspan="4">
					<i>Estimated strength: WARNING, unverified formula!</i>
				</td>
			</tr>	
			<tr class="standard">
				<td>&nbsp;</td>
				<td><input type='submit' value='Recalc' /></td>
				<td colspan="4">&nbsp;</td>
			</tr>	
		</table>
		</form>

{% endblock %}
